#define  _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

//int main()
//{
//	int n = 0;
//	pSLNode plist = NULL;
//	do
//	{
//		scanf("%d", &n);
//		if (n != -1)
//			SListPushBack(&plist, n);
//	} while (n != -1);
//	SListPrint(plist);
//
//	printf("%d\n", kthtolast(plist, 4));
//
//
//	return 0;
//}

int main()
{
	Node* plist = NULL;
	plist = BuyNode(1);
	plist->next = BuyNode(2);
	plist->next->random = plist;
	plist->next->next = BuyNode(3);
	plist->next->next->random = plist;

	copyRandomList(plist);
}